package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AddController {
    @RequestMapping("/add")
    public String add(Integer num1,Integer num2){
        return "结果为："+(num1+num2);
    }
}
